package properties

class PET {

	String course
	String institute
	String acronym
	double cre
	
	static constraints = {
		course(blank:false, nullable:false, size:2..128, matches:"(\\p{L})+(\\s(\\p{L})*)*")
		institute(blank:false, nullable:false, size:2..128, matches:"(\\p{L})+(\\s(\\p{L})*)*")
		acronym(blank:false, nullable:false, size:2..10, matches:"(\\p{L})+(\\s(\\p{L})*)*")
		cre(nullable:false, range:0..10, scale:2)
	}
}
